﻿#region Copyright

//  ======================================================
//      Copyright (c) 2011 Toulr All rights reserved.
//     
//      The use and distribution terms for this software are contained in the file
//      named license.txt, which can be found in the root of this distribution.
//      By using this software in any fashion, you are agreeing to be bound by the
//      terms of this license.
//     
//     You must not remove this notice, or any other, from this software.
//  ======================================================

#endregion

#region Using Namespaces

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace Toulr.Domains.Account
{
    /// <summary>
    ///   用户朋友对象定义表
    /// </summary>
    public class Friends
    {
        #region Property
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 原始用户ID
        /// </summary>
        public int OriginalUserId { get; set; }

        /// <summary>
        /// 目标用户ID
        /// </summary>
        public int TargetUserId { get; set; }

        /// <summary>
        ///   请求信息
        /// </summary>
        [MaxLength(120)]
        public string RequestMessage { get; set; }

        /// <summary>
        /// 好友状态ID
        /// </summary>
        public int StatusId { get; set; }

        #endregion

        #region Association Objects

        /// <summary>
        ///   原始用户
        /// </summary>
        [NotMapped]
        public virtual User OriginalUser
        {
            get { throw new NotImplementedException(); }
        }

        /// <summary>
        ///   目标用户
        /// </summary>
        [NotMapped]
        public virtual User TargetUser
        {
            get { throw new NotImplementedException(); }
        }
        /// <summary>
        ///   好友状态
        /// </summary>
        [NotMapped]
        public FriendStatus Status
        {
            get { throw new NotImplementedException(); }
        }
        #endregion
    }
}